package com.shamar.blog.entity;

import lombok.Data;

import java.util.Date;

/**
 * @author fangxiaoming
 * @update 2020-07-21 20:07
 */
@Data
public class BlogCategory {
    private Integer id;

    private String categoryName;

    private Integer parentId;

    private String parentCategoryName;

    private Integer status;

    private Date createtime;

    private Date lastEdittime;

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName == null ? null : categoryName.trim();
    }
}